package com.ruoyi.ade.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ade.mapper.AdeLabKfoldResultMapper;
import com.ruoyi.ade.domain.AdeLabKfoldResult;
import com.ruoyi.ade.service.IAdeLabKfoldResultService;

/**
 * AdeLabKfoldResultService业务层处理
 * 
 * @author wxh
 * @date 2025-06-29
 */
@Service
public class AdeLabKfoldResultServiceImpl implements IAdeLabKfoldResultService 
{
    @Autowired
    private AdeLabKfoldResultMapper adeLabKfoldResultMapper;

    /**
     * 查询AdeLabKfoldResult
     * 
     * @param id AdeLabKfoldResult主键
     * @return AdeLabKfoldResult
     */
    @Override
    public AdeLabKfoldResult selectAdeLabKfoldResultById(Integer id)
    {
        return adeLabKfoldResultMapper.selectAdeLabKfoldResultById(id);
    }

    /**
     * 查询AdeLabKfoldResult列表
     * 
     * @param adeLabKfoldResult AdeLabKfoldResult
     * @return AdeLabKfoldResult
     */
    @Override
    public List<AdeLabKfoldResult> selectAdeLabKfoldResultList(AdeLabKfoldResult adeLabKfoldResult)
    {
        return adeLabKfoldResultMapper.selectAdeLabKfoldResultList(adeLabKfoldResult);
    }

    /**
     * 新增AdeLabKfoldResult
     * 
     * @param adeLabKfoldResult AdeLabKfoldResult
     * @return 结果
     */
    @Override
    public int insertAdeLabKfoldResult(AdeLabKfoldResult adeLabKfoldResult)
    {
        adeLabKfoldResult.setCreateTime(DateUtils.getNowDate());
        return adeLabKfoldResultMapper.insertAdeLabKfoldResult(adeLabKfoldResult);
    }

    /**
     * 修改AdeLabKfoldResult
     * 
     * @param adeLabKfoldResult AdeLabKfoldResult
     * @return 结果
     */
    @Override
    public int updateAdeLabKfoldResult(AdeLabKfoldResult adeLabKfoldResult)
    {
        return adeLabKfoldResultMapper.updateAdeLabKfoldResult(adeLabKfoldResult);
    }

    /**
     * 批量删除AdeLabKfoldResult
     * 
     * @param ids 需要删除的AdeLabKfoldResult主键
     * @return 结果
     */
    @Override
    public int deleteAdeLabKfoldResultByIds(Integer[] ids)
    {
        return adeLabKfoldResultMapper.deleteAdeLabKfoldResultByIds(ids);
    }

    /**
     * 删除AdeLabKfoldResult信息
     * 
     * @param id AdeLabKfoldResult主键
     * @return 结果
     */
    @Override
    public int deleteAdeLabKfoldResultById(Integer id)
    {
        return adeLabKfoldResultMapper.deleteAdeLabKfoldResultById(id);
    }
}
